<!DOCTYPE html>
<html lang="zh-cn" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script>
    <script src="/js/vuejs-2.5.16.js"></script>
    <script src="/js/axios-0.18.0.js"></script>
    <script src="/js/laydate/laydate.js"></script>
</head>
<body>
<div>
    <a class="button border-main" href="/paper_list.html"><span class="icon-edit"></span>返回</a>
</div>

<div class="panel admin-panel" id="moviesDiv">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>试卷内容</strong></div>
    <div class="body-content">
        <ul>
            <li v-for="(options,question,index) in paperVo">
                第{{index+1}}题: {{question}}
                <ol>
                    <li v-for="opt in options">
                        {{opt}}
                    </li>
                </ol>
            </li>
        </ul>
        </form>
    </div>
</div>
<script type="text/javascript">
    const app = new Vue({
        el: '#moviesDiv',
        data: {
            paperVo: {}//
        },
        methods: {
            findPaperById(id){
                axios.get("/soul/paper/findContentById?id="+id).then(resp=>{
                    this.paperVo=resp.data;
                })
            }
        },
        created() {
            let id=location.search.split("=")[1]
            if (id){

                this.findPaperById(id);
            }
        }
    })
</script>

<script>
    lay('#version').html('-v' + laydate.v);
    //执行一个laydate实例
    laydate.render({
        elem: '#showTime' //指定元素
    });
</script>

</body>
</html>